Optimal. Leaf size=191 \[ -\frac {(3 c-5 d) (c+d) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} (c-d)^{3/2} f}-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a (c-d) f (a+a \sin (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 191, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {2843, 3057, 12,
2861, 214} \begin {gather*} -\frac {(3 c-5 d) (c+d) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} f (c-d)^{3/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (c-d) (a \sin (e+f x)+a)^{3/2}}-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a \sin (e+f x)+a)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 2843
Rule 2861
Rule 3057
Rubi steps
\begin {align*} \int \frac {\sqrt {c+d \sin (e+f x)}}{(a+a \sin (e+f x))^{5/2}} \, dx &=-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}+\frac {\int \frac {\frac {1}{2} a (3 c+d)+a d \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{4 a^2}\\ &=-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a (c-d) f (a+a \sin (e+f x))^{3/2}}-\frac {\int -\frac {a^2 (3 c-5 d) (c+d)}{4 \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{8 a^4 (c-d)}\\ &=-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a (c-d) f (a+a \sin (e+f x))^{3/2}}+\frac {((3 c-5 d) (c+d)) \int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{32 a^2 (c-d)}\\ &=-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a (c-d) f (a+a \sin (e+f x))^{3/2}}-\frac {((3 c-5 d) (c+d)) \text {Subst}\left (\int \frac {1}{2 a^2-(a c-a d) x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 a (c-d) f}\\ &=-\frac {(3 c-5 d) (c+d) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} (c-d)^{3/2} f}-\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a (c-d) f (a+a \sin (e+f x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(412\) vs. \(2(191)=382\).
time = 6.68, size = 412, normalized size = 2.16 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \left (-\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (7 c-5 d+(3 c-d) \sin (e+f x)) (c+d \sin (e+f x))}{\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}+\frac {\left (3 c^2-2 c d-5 d^2\right ) \left (\log \left (1+\tan \left (\frac {1}{2} (e+f x)\right )\right )-\log \left (c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )\right )\right )}{\frac {\sec ^2\left (\frac {1}{2} (e+f x)\right )}{2+2 \tan \left (\frac {1}{2} (e+f x)\right )}-\frac {-\frac {1}{2} (c-d) \sec ^2\left (\frac {1}{2} (e+f x)\right )+\frac {\sqrt {c-d} \left (\frac {1}{1+\cos (e+f x)}\right )^{3/2} (d+d \cos (e+f x)+c \sin (e+f x))}{\sqrt {c+d \sin (e+f x)}}}{c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )}}\right )}{32 (c-d) f (a (1+\sin (e+f x)))^{5/2} \sqrt {c+d \sin (e+f x)}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(3049\) vs.
\(2(162)=324\).
time = 11.13, size = 3050, normalized size = 15.97
method | result | size |
default | \(\text {Expression too large to display}\) | \(3050\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 644 vs.
\(2 (171) = 342\).
time = 0.63, size = 1534, normalized size = 8.03 \begin {gather*} \left [\frac {{\left ({\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 12 \, c^{2} + 8 \, c d + 20 \, d^{2} - 2 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right ) + {\left ({\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 12 \, c^{2} + 8 \, c d + 20 \, d^{2} - 2 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {2 \, a c - 2 \, a d} \log \left (\frac {{\left (a c^{2} - 14 \, a c d + 17 \, a d^{2}\right )} \cos \left (f x + e\right )^{3} - 4 \, a c^{2} - 8 \, a c d - 4 \, a d^{2} - {\left (13 \, a c^{2} - 22 \, a c d - 3 \, a d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, {\left ({\left (c - 3 \, d\right )} \cos \left (f x + e\right )^{2} - {\left (3 \, c - d\right )} \cos \left (f x + e\right ) + {\left ({\left (c - 3 \, d\right )} \cos \left (f x + e\right ) + 4 \, c - 4 \, d\right )} \sin \left (f x + e\right ) - 4 \, c + 4 \, d\right )} \sqrt {2 \, a c - 2 \, a d} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} - 2 \, {\left (9 \, a c^{2} - 14 \, a c d + 9 \, a d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, a c^{2} + 8 \, a c d + 4 \, a d^{2} - {\left (a c^{2} - 14 \, a c d + 17 \, a d^{2}\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (7 \, a c^{2} - 18 \, a c d + 7 \, a d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 4\right )} \sin \left (f x + e\right ) - 2 \, \cos \left (f x + e\right ) - 4}\right ) + 8 \, {\left ({\left (3 \, c^{2} - 4 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, c^{2} - 8 \, c d + 4 \, d^{2} + {\left (7 \, c^{2} - 12 \, c d + 5 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, c^{2} - 8 \, c d + 4 \, d^{2} - {\left (3 \, c^{2} - 4 \, c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{128 \, {\left ({\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f + {\left ({\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f\right )} \sin \left (f x + e\right )\right )}}, -\frac {{\left ({\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 12 \, c^{2} + 8 \, c d + 20 \, d^{2} - 2 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right ) + {\left ({\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 12 \, c^{2} + 8 \, c d + 20 \, d^{2} - 2 \, {\left (3 \, c^{2} - 2 \, c d - 5 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {-2 \, a c + 2 \, a d} \arctan \left (\frac {\sqrt {-2 \, a c + 2 \, a d} \sqrt {a \sin \left (f x + e\right ) + a} {\left ({\left (c - 3 \, d\right )} \sin \left (f x + e\right ) - 3 \, c + d\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{4 \, {\left ({\left (a c d - a d^{2}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (a c^{2} - a c d\right )} \cos \left (f x + e\right )\right )}}\right ) - 4 \, {\left ({\left (3 \, c^{2} - 4 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, c^{2} - 8 \, c d + 4 \, d^{2} + {\left (7 \, c^{2} - 12 \, c d + 5 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, c^{2} - 8 \, c d + 4 \, d^{2} - {\left (3 \, c^{2} - 4 \, c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{64 \, {\left ({\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f + {\left ({\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{2} - 2 \, a^{3} c d + a^{3} d^{2}\right )} f\right )} \sin \left (f x + e\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {c + d \sin {\left (e + f x \right )}}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c+d\,\sin \left (e+f\,x\right )}}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________